<template>
<!-- 只能包含一个div -->
  <div class="test">
    <h3>{{message}}</h3>
    <h3>{{init}}</h3>
  </div>
</template>

<script>
  export default{
    //props为自定义属性，为当前组件指定初始值
    props:['init'],
    data(){
        return{
            message:'this is left compoment',
        }
    },
    methods:{},
  }
</script>
<style scoped lang="less">
  .test{
    background: orange;
  }
  h3{
    color: red;
  }
</style>
